import request from '../utils/request.js'

/**
 * 获取用户的所有文章
 */
export const getUserArticleAPI = (user_id) => request.get('/user/getUserArticle', {
    user_id
})

/**
 * 文字型用户信息失去焦点后更新数据库
 */
export const updateUserTextAPI = (user_id, text, type) => request.post('/user/updateUserText', {
    user_id,
    text,
    type
})

// 查找用户
export const searchUserAPI = (searchUserValue) => request.get('/user/searchUser', {
    searchUserValue
})